<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td bgcolor="#cccccc" width="200" valign="top"><!-- variable RHS Menu -->
                     	<?php require('templates/menu7.php');?>
</td>
    <td valign="top" style="padding:30px 30px 30px 30px;">
	
	
		<table border="0" width="420" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px">
	 <tr>
		<td>
		<b><div id="resultshere1" class="errorText">
		<?php
	 if($_REQUEST['aexit']==1)
	{
	echo 'Data already exist';
	}
	 ?>
	 	<?php
	 if($_REQUEST['v']=='err')
	{
	echo 'File Not Updated';
	}
	 ?>
	 	<?php
	 if($_REQUEST['v']=='success')
	{
	echo 'File Successfully Updated';
	}
	 ?>
		</div></b>
		</td>
		</tr>
		<tr>
		  <td><img src="heading/Add-New-Datacards_03.jpg" /></td>
		</tr>
		<tr>
		   <td>&nbsp;</td>
		</tr>   
	
	<tr>
	<td>
	
		<form method="POST" enctype="multipart/form-data" action="datacard_process.php">
			<!--webbot bot="FileUpload" u-file="D:\Laptop\_private\form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" -->			
			<p><b>Accessories Name :</b>Data Card</p>
			<p><b>Upload file: </b> <input type="file" name="upload_file" size="20"></p>
			<p><u><font color="#0000FF"><a href="downloaddatacardsheet.php">download excel sheet here.</a></font></u></p> 			
			<p><input type="submit" value="Submit" name="B1"></p>
	  </form>
	</td>
	</tr>	
    <tr>
		<td>
			<table border="1"><tr><td colspan="9" style="color:#003300;font-size:14px"><b>Rules for entering into the excel sheet</b></td></tr><tr><th>datacard</th><th>card_no</th><th>RSN_no</th><th>box_no</th><th>status</th><th>depot_location</th></tr>
			<tr><td><i>Enter the datacard company name</i></td><td><i>Enter the datacard no</i></td><td><i>Enter RSN no</i></td><td><i>Enter the box_no</i></td><td><i>Enter always "0"</i></td><td><i>Copy paste the depot location from below depot list</i></td></tr>
			</table>
		</td>
	</tr>
    <tr>
	<td>
	
	  <?php $sql = mysql_query('SELECT user_address FROM users where user_groups_id="4"'); 
			   if(mysql_num_rows($sql) >0){  ?>
			   <fieldset>
				<legend><b>Depot List</b></legend>
	 			 <b style="color:#FF0000"><u>Here is the List of Depot. Please copy paste the depot location correctly into the excel sheet.</u></b><br /><br />			   
			  <?php $i='1';
			   while($row= mysql_fetch_array($sql))
				{			
				echo $i.')&nbsp;'.$row['user_address']."<br><br>";
				$i++;
				} ?>
				</fieldset>
		<?php } ?>
	  
	</td>
	</tr>
</table>	
	
	</td>
  </tr>
</table>